import request from '@/utils/request'
import {faceApiUrl} from '../../config'

// 工期风险

/**
 * 分页查询
 * @param {Object} data
 */
export function findListByMain(data) {
    return request({
        url: `${faceApiUrl}/projectCycleEarlyWarn/findListByMain`,
        method: 'post',
        data: data
    })
}

/**
 * 工期预警变成已转化
 * @param {Object} data
 */
 export function projectCycleEarlyWarnChangeStatus(data) {
    return request({
        url: `${faceApiUrl}/projectCycleEarlyWarn/changeStatus`,
        method: 'post',
        data: data.id
    })
}
